package com.zhaoziqian.service;

import com.zhaoziqian.model.SDKResponse;

/**
 * Created with fabric-cli
 * 作者： zhaoziqian
 * 时间： 2018/6/4  上午10:47
 * 功能：
 */
public interface BlockService {

    SDKResponse getBlock(String ordererOrg, String ordererId, String org, String peerId, String channelName, String blockNumber) throws Exception;

    SDKResponse queryTransaction(String ordererOrg, String ordererId, String org, String peerId, String channelName, String txId) throws Exception;

    SDKResponse queryInfo(String ordererOrg, String ordererId, String org, String peerId, String channelName) throws Exception;

    SDKResponse queryInstalledChaincodes(String ordererOrg, String ordererId, String org, String peerId, String channelName) throws Exception;

    SDKResponse queryInstantiatedChaincodes(String ordererOrg, String ordererId, String org, String peerId, String channelName) throws Exception;

    SDKResponse queryChannels(String ordererOrg, String ordererId, String org, String peerId, String channelName) throws Exception;

    SDKResponse getPeers(String ordererOrg, String ordererId, String org, String peerId, String channelName) throws Exception;
}
